package com.kuang;

import redis.clients.jedis.Jedis;

/**
 * @program: kuang-redis
 * @description:
 * @author: 陈恩涛
 * @create: 2020-11-20 15:04
 **/
public class TestPing {
    public static void main(String[] args) {
        //1、 new一个jedis对象即可
        Jedis jedis = new Jedis("192.168.43.58",6379);

        //jedis所有的方法就是我们之前学习的所有的指令
        jedis.auth("123456");
        System.out.println(jedis.ping());
    }
}
